package com.example.smartcity_poverty.ui.AllService.LivingPayment.adapter

import com.example.smartcity_poverty.Base.BaseRecyclerAdapter
import com.example.smartcity_poverty.logic.ServiceBean.LivingPayment.LpAddAllListModel
import kotlinx.android.synthetic.main.re_lp_add_phone.*

/**
 *  created by ikun
 *  ANDROID STUDIO - version 4.0
 *  email: jinkunwei41@gmail.com
 * --------------------------------
 *  缴费记录列表适配器
 **/
class LpAddPhoneAllAdapter(
    val list: MutableList<LpAddAllListModel.RowsBean>,
    layoutId: Int
) : BaseRecyclerAdapter<LpAddAllListModel.RowsBean>(list, layoutId) {
    override fun setData(
        view: BaseViewHolder.ViewFind,
        data: LpAddAllListModel.RowsBean,
        position: Int,
        holder: BaseViewHolder
    ) {
        val d = list[position]
        val fv = holder.viewFind
        val con = holder.viewFind.view?.context

        fv.lpAddPhoneAllPhone.text = "手机号: ${d.phonenumber}"
        fv.lpAddPhoneAllTime.text = "充值时间: ${d.rechargeTime}"
    }
}